package com.pay.utils;

import org.apache.commons.lang3.StringUtils;

import com.pay.utils.MsgCodeUtils;

public class MessageModel {
    private String code;
    private String msg;
    private Object model;

    public String getCode() {
        return StringUtils.isEmpty(code) ? MsgCodeUtils.CODE_SUCCESS : code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return StringUtils.isEmpty(msg) ? MsgCodeUtils.CODE_SUCCESS_MSG : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getModel() {
        return model;
    }

    public void setModel(Object model) {
        this.model = model;
    }
}
